#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    explicit MyCoin(const QString& butImg,QWidget* parent = nullptr);
    void changeFlag();
    void mousePressEvent(QMouseEvent* ev);
signals:
public:
    int     m_posX;
    int     m_posY;
    bool    m_flag;
    bool    m_isWin;
private:
    QTimer* m_timer1;
    QTimer* m_timer2;
    int     m_min;
    int     m_max;
    bool    m_IsAnimation;
public slots:
    void    onTimer1Timeout();
    void    onTimer2Timeout();
};

#endif // MYCOIN_H
